package com.cy.mall.dao.mapper.product;

import com.cy.mall.model.domain.product.Product;
import com.cy.mall.model.dto.product.ProductInfoDTO;
import com.cy.mall.model.enums.ThirdSource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

/**
 * @Description 产品 ProductMapper
 * @Author tanyilin
 * @Date 2019/3/29 16:01
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    /**
     * 根据产品第三方来源、第三方产品类型参数查询 ppj 的产品信息
     * @param thirdSource
     * @param thirdProductType
     * @return com.cy.mall.model.dto.product.ProductInfoDTO
     */
    ProductInfoDTO selectProductInfoByThirdSourceAndThirdProductType(@Param("thirdSource") ThirdSource thirdSource, @Param("thirdProductType") String thirdProductType);

}
